<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div>Users:</div>
    <ul>
      <li>John</li>
      <li>Pete</li>
    </ul>
    <script>
        let div =  document.querySelector('div');
        let divFirstChild = document.body.firstChild;
        let uls = document.querySelector('ul');
        let lis = document.querySelectorAll('ul>li');
        console.log(div,divFirstChild);
        console.log(uls);
        for(let i = 0;i <lis.length; i++){
            console.log(lis[i]);
        }
    </script>
</body>
</html>